<form action="productList.php" name='itemView' method='POST'>
<table border='0' cellpadding='1' cellspacing='2' align='center'>
<tr>
  <td  class="table1" align='center'colspan="10"><B>Product Available</td>
</tr>
<tr>
  <td  class="table1" align='center' ><B>&nbsp;</td>
	<td  class="table1" align='center' ><B>S.R.No</td>
	<td  class="table1" align='center' ><B>Product Name</td>
	<td  class="table1" align='center' ><B>Category</td>
	<td  class="table1" align='center' ><B>Sub Category</td>
	<td  class="table1" align='center' ><B>Product Make</td>
	<td  class="table1" align='center' ><B>Model No.</td>
	<td  class="table1" align='center' ><B>Current Stock</td>
	<td  class="table1" align='center' ><B>Max Level</td>
	<td  class="table1" align='center' ><B>Min Levelk</td>
</tr>
{section name="sec" loop=$itemDetailArray}
<tr>
	
	{if $userType == 'superAdmin' || $userType == 'operationManager'} 
  <td class="table3" align="center">
		<a href="deleteProduct.php?itemId={$itemDetailArray[sec].itemId}" class="link" onclick="return confirm('Are You Sure?');"><img src="./images/deleteIcon.png" border="0" width="15" height="15"></a>
	</td> 
	{else}
	<td class="table3" align="center"></td>
	{/if}
	<td class="table3" align="left">{$smarty.section.sec.rownum}</td>
	<td class="table3" align="left">{$itemDetailArray[sec].itemName}</td>
	<td class="table3" align="left">{$itemDetailArray[sec].categoryName}</td>
	<td class="table3" align="left">{$itemDetailArray[sec].subCategoryName}</td>
	<td class="table3" align="right">{$itemDetailArray[sec].itemMake} </td>
	<td class="table3" align="right">{$itemDetailArray[sec].modelNo}</td>
	<td class="table3" align="right"><input type="text" name="currentStock[{$itemDetailArray[sec].itemId}]" value="{$itemDetailArray[sec].currentStock}" align="right" size="7" {if $s_userType != 'superAdmin'}disabled{/if} /></td>
	<td class="table3" align="right"><input type="text" name="currentMaxLevel[{$itemDetailArray[sec].itemId}]" value="{$itemDetailArray[sec].maxLevel}" align="right" size="7" {if $s_userType != 'superAdmin'}disabled{/if} /></td>
	<td class="table3" align="right"><input type="text" name="currentMinLevel[{$itemDetailArray[sec].itemId}]" value="{$itemDetailArray[sec].minLevel}" align="right" size="7" {if $s_userType != 'superAdmin'}disabled{/if} /></td>
</tr>
{sectionelse}
<tr><td class="table2" align="center" colspan="9"> <h2><font color="red"><b> Empty Record.....</b></font></h2></td></tr>
{/section}
{if $i != 0}
{if $s_userType == 'superAdmin'}
  <tr>
  	<td class="table2" align="center" colspan="10"><input type="submit" name="saveBtn" value=" S A V E " /></td>
  </tr>
{/if}
{/if}
</table>
</form>